<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改接入端账密配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-point-edit" th:object="${dataxEndPoint}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">接入端名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">捷顺独有字段：</label>
                <div class="col-sm-8">
                    <input name="accessname" th:field="*{accessname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">停车场编号：</label>
                <div class="col-sm-8">
                    <input name="parkNo" th:field="*{parkNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数据上行地址：</label>
                <div class="col-sm-8">
                    <input name="dataUploadUrl" th:field="*{dataUploadUrl}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数据下行接口：</label>
                <div class="col-sm-8">
                    <input name="dataDownloadUrl" th:field="*{dataDownloadUrl}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">上行账号、公钥：</label>
                <div class="col-sm-8">
                    <textarea name="accountUserUp" class="form-control">[[*{accountUserUp}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">上行密码、私钥：</label>
                <div class="col-sm-8">
                    <textarea name="accountPwdUp" class="form-control">[[*{accountPwdUp}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">下行账号、公钥：</label>
                <div class="col-sm-8">
                    <textarea name="accountUserDown" class="form-control">[[*{accountUserDown}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">下行密码、私钥：</label>
                <div class="col-sm-8">
                    <textarea name="accountPwdDown" class="form-control">[[*{accountPwdDown}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否发起心跳：1:否，0:是：</label>
                <div class="col-sm-8">
                    <input name="isHeart" th:field="*{isHeart}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/point";
        $("#form-point-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-point-edit').serialize());
            }
        }
    </script>
</body>
</html>